<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="be.ac.ua.ecampus.uacmat.entity.*" %>
<%@ page import="be.ac.ua.ecampus.uacmat.*" %>
<!DOCTYPE html>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Course Material</title>
	<link rel="stylesheet" type="text/css" href="style.css"/>
</head>

<body>
<header>
	<h1>Course Material - Home</h1>
</header>

<div id="body-wrapper">

	<h2>Search</h2>
	<form name="searchform" action="search" method="POST">
		<input type="text" name="search" id="search" placeholder="Search.."> <br>
		<input type="radio" name="resultgroup" value="all" checked> Everything<br>
		<input type="radio" name="resultgroup" value="syllabuses"> Syllabuses<br>
		<input type="radio" name="resultgroup" value="courses"> Courses<br>
		<input type="radio" name="resultgroup" value="programs"> Programs<br>
		<input type="submit" name="submit" id="submit" value="Search"> <br>
	</form>
	 
	<h2>Browse</h2>
	<strong>Faculties</strong>
	<ul>
		<% QueryHandler handler = new QueryHandler(); %>
		<% for (final Faculty fac : handler.getFaculties()) { %>
			<li>
		    	<a href="/uacmat/show?type=<%= fac.getType() %>&id=<%= fac.getId() %>"><%= fac.getDescription() %></a>
			</li>
		<% } %>
	</ul>
</div>
</body>
</html>